package com.feiyu.logistics.controller;

import com.feiyu.common.utils.R;
import com.feiyu.logistics.dto.logisticsGetDto;
import com.feiyu.logistics.entity.LogisticsInfoEntity;
import com.feiyu.logistics.service.LogisticsOrderService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Author: Doate
 * @Date: Created in 2021/4/6 20:22
 * @Description:
 */

@RestController
public class LogisticsOrderController {

    @Resource
    LogisticsOrderService service;



    @PostMapping("/openFeiyu/get")
    public R logisticsGet(@RequestBody logisticsGetDto dto) {

        service.getPostGoods(dto);
        return R.ok();
    }

    @PostMapping("/searchById")
    public R searchById(@RequestBody logisticsGetDto dto ) {

        return R.ok().put("data",service.searchById(dto.getLogisticsId()));
    }



}
